package com.yihaodian.search.query.converter;

import org.apache.lucene.search.NumericRangeQuery;

public class NumericRangeQueryConverter {
	public static NumericRangeQuery<Integer> convert(
			com.yihaodian.api.search.query.NumericRangeQuery query) {
		
		NumericRangeQuery<Integer> ret = NumericRangeQuery.newIntRange(
				query.getField(), query.getFrom(), query.getTo(),
				query.isIncludeFrom(), query.isIncludeTo());
		
		return ret;
	}
}
